<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #box2{
            width: 160px;
            height: 40px;
            background-color: burlywood;
            border: 1px solid red;
            font-size: 12px;
            display: none;
        }
      
    
    </style>
</head>
<body>
    <div id="box1">
        <input type="checkbox" name="" id="">
        记住密码 两周内自动登陆
    </div>
    <div id="box2">
        为了你的账号安全，请不要在网吧使用此功能
    </div>
    
    <script>
        var box1 = document.getElementById('box1')
        var box2 = document.getElementById('box2')

        box1.onmouseover = function (){
            box2.style.display = 'block'
        }
        box1.onmouseout = function(){
            box2.style.display = 'none'
        }
    </script>


</body>
</html>